# sms
import os

TENCENT_SMS_APP_ID = 1400457693
TENCENT_SMS_APP_KEY = '4e6d0d976359c5d557b84d7af2439cea'
TENCENT_SMS_SIGN = '前端路程公众号'

# redis
CACHES = {
    "default": {
        "BACKEND": "django_redis.cache.RedisCache",
        "LOCATION": "redis://127.0.0.1:6379",
        "OPTIONS": {
            "CLIENT_CLASS": "django_redis.client.DefaultClient",
            "CONNECTION_POOL_KWARGS": {"max_connections": 1000, 'encoding': 'utf-8'}
            # "PASSWORD": "密码",
        }
    },
}

SESSION_ENGINE = 'django.contrib.sessions.backends.cache'  # 引擎
SESSION_CACHE_ALIAS = 'default'
